package com.tau.egonetwork.facebook;

import com.tau.egonetwork.profiles.Group;
import com.tau.egonetwork.profiles.GroupsList;
import com.tau.egonetwork.profiles.MainProfile;
import com.tau.egonetwork.profiles.Profile;

public class FacebookMainProfile extends MainProfile<Long> {

	private static final long serialVersionUID = -7964496385604170287L;

	public FacebookMainProfile(long id, String name) {
		super(id, name);
	}

	@Override
	public String toString() {
		String s = super.toString();
		GroupsList<Long> gl = getGroupsList();
		if (gl != null) {
			for (Group<Long> g : gl) {
				s += "\n\t-- " + g.getGroupName();
				s += ": ";
				for (Profile<Long> p : g) {
					s += p.getName() + ", ";
				}
			}
		}
		return s;
	}
}
